<?php
namespace app\index\controller;

use think\Controller;

class Index extends Controller
{
    public function index()
    {
        return view();
//         dump(config());
    }

    public function h5pay(){
        //openid不用传没啥用
        $Weixin_payh5 = new Weixin_payh5();
        $openid="";
        $total_fee=1;
        $body="wamp支付测试";
        $order_sn=time();
        $res=$Weixin_payh5->payh5($openid,$total_fee,$body,$order_sn);

        $this->assign("res",$res);

        return $this->fetch("h5pay");
    }

}
